# 编译用户自己写的源文件

#include $(RULES)/defs.common.mk


EXCLUDE_MOD = Makefile include
MODULES = $(filter-out $(EXCLUDE_MOD), $(shell ls))



all: $(MODULES)

$(MODULES):
	@echo ""
	@for submod in $@ ; do \
		$(MAKE) -C `pwd`/$$submod MOD_NAME=$$submod; \
	done


clean:
	@for submod in $(MODULES) ; do \
		$(MAKE) -C `pwd`/$$submod MOD_NAME=$$submod $@; \
	done

distclean: clean
	@for submod in $(MODULES) ; do \
		$(MAKE) -C `pwd`/$$submod MOD_NAME=$$submod $@; \
	done

.PHONY: all $(MODULES) clean distclean

